package cn.edu.bcu.ls.service;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import cn.edu.bcu.ls.entity.Course;
import cn.edu.bcu.ls.entity.SectionParams;
import cn.edu.bcu.ls.entity.Tag;
import cn.edu.bcu.ls.mapper.CourseMapper;
import cn.edu.bcu.ls.serviceImpl.CourseService;

@Service
public class CourseServiceImpl implements CourseService{

    @Resource
    private CourseMapper courseMapper;

    @Override
    public int deleteByPrimaryKey(Integer cId) {
        return courseMapper.deleteByPrimaryKey(cId);
    }

    @Override
    public int insert(Course record) {
        return courseMapper.insert(record);
    }

    @Override
    public int insertSelective(Course record) {
        return courseMapper.insertSelective(record);
    }

    @Override
    public Course selectByPrimaryKey(Integer cId) {
        return courseMapper.selectByPrimaryKey(cId);
    }

    @Override
    public int updateByPrimaryKeySelective(Course record) {
        return courseMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(Course record) {
        return courseMapper.updateByPrimaryKey(record);
    }

	@Override

	public List<Course> queryCourse() {
		// TODO Auto-generated method stub
		return courseMapper.queryCourse();
	}

	public List<Course> queryLikeContext(String context) {
		// TODO Auto-generated method stub
		return courseMapper.queryLikeContext(context);
	}

	@Override
	public List<Course> selectBysIdcId(SectionParams sectionParams) {
		// TODO Auto-generated method stub
		return courseMapper.selectBysIdcId(sectionParams);
	}


}
